import { Component, OnInit } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './tenant.order.component.html'
})
export class TenantOrderComponent implements OnInit {

  fs: any = null;
  regDic: any = null;
  payStateDic: any = null;
  payTypeDic: any = null;
  orderDic: any = null;

  constructor() {
    this.fs = new form.FormSimpleService('tenantorder', {
      orderObject: { id: 0 },
      keyField: 'id',
      randomFields: ['id']
    });
    this.fs.loadData(true);

    // 初始化字典
    this.regDic = new form.DictionaryService('p_register_service');
    this.payStateDic = new form.DictionaryService('p_pay_state');
    this.payTypeDic = new form.DictionaryService('p_pay_type');
    this.orderDic = new form.DictionaryService('p_order_state');
  }

  ngOnInit() {
  }

}
